import Vue from 'vue'
import App from './App'
import Vuex from 'vuex'
import Request from './api/api.js'
import store from '@/store/store.js'
import uvUI from '@/uni_modules/uv-ui-tools'
import moment from 'moment'
import {
	checkTokenNow
} from '@/common/common.js'
Vue.use(uvUI);
Vue.use(Vuex)
Vue.config.productionTip = false
Vue.prototype.$Request = Request
moment.locale('zh-cn')
Vue.prototype.$moment = moment
App.mpType = 'app'
//判断运行环境
//console.log(process.env.NODE_ENV)
Vue.prototype.$onLaunched = new Promise(resolve => {
	Vue.prototype.$isResolve = resolve
})
const app = new Vue({
	store,
	...App,
})
app.$mount()
// checkTokenNow();